package com.yeyks.model;

public class PreOrderType {
    public final static int wx = 1;
    public final static int h5 = 2;
    public final static int app = 3;

    public static int parse(String s) {
        if (s.compareToIgnoreCase("wx") == 0) {
            return wx;
        }

        if (s.compareToIgnoreCase("h5") == 0) {
            return h5;
        }

        return app;
    }
}
